package org.dromara.system.domain.bo;

import org.dromara.system.domain.DeviceDetail;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 设备详细信息业务对象 device_detail
 *
 * @author Lion Li
 * @date 2024-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceDetail.class, reverseConvertGenerate = false)
public class DeviceDetailBo extends BaseEntity {

    /**
     * 产品编号
     */
    @NotBlank(message = "产品编号不能为空", groups = { EditGroup.class })
    private String productNumber;

    /**
     * 充装单位
     */
    @NotBlank(message = "充装单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chargingUnit;

    /**
     * 登记证编号
     */
    @NotBlank(message = "登记证编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String registrationNumber;

    /**
     * 设备品种
     */
    @NotBlank(message = "设备品种不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceType;

    /**
     * 单位内编号
     */
    @NotBlank(message = "单位内编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitNumber;

    /**
     * 标签号
     */
    @NotBlank(message = "标签号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String labelNumber;

    /**
     * 二维码号
     */
    @NotBlank(message = "二维码号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qrCodeNumber;

    /**
     * 制作单位
     */
    @NotBlank(message = "制作单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manufacturer;

    /**
     * 制造日期
     */
    @NotNull(message = "制造日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manufactureDate;

    /**
     * 检验日期
     */
    @NotNull(message = "检验日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inspectionDate;

    /**
     * 下次检验日期
     */
    @NotNull(message = "下次检验日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nextInspectionDate;

    /**
     * 充气介质
     */
    @NotBlank(message = "充气介质不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chargingMedium;

    /**
     * 容积
     */
    @NotBlank(message = "容积不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warrantyPeriod;

    /**
     * 公称工作压力
     */
    @NotBlank(message = "公称工作压力不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nominalPower;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 关联字段
     */
    @NotBlank(message = "关联字段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String connect;


}
